package top.infopub.mgr.cap.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.dto.cap.ContractMortgageDto;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.cap.domain.ContractMortgageDomain;
import top.infopub.mgr.cap.vo.ContractMortgageVo;
import top.infopub.model.cap.ContractMortgage;

@Repository
public interface ContractMortgageDao extends GenericDao<ContractMortgage, String> {

    /**
     * 根据条件查询抵押合同列表
     * @param contractMortgageVo
     * @return
     * @see
     */
    Page<ContractMortgageDomain> selectByDomainWhere(ContractMortgageVo contractMortgageVo);

    /**
     *
     * @param id
     * @return
     */
    ContractMortgageDto queryDetailById(@Param("id") String id);
}
